

<div class="container">
    <?php
    $profile = $member->profile();
    ?>
    <?php include 'member-left.php'; ?>

    <div class="member_c">

        <div class="title_mb_bg2">

            <ul>
                <li>
                    <div>
                         <span class="avatar" id="spanAvatar">
                            <img id="avatar" src="<?php echo $profile['profile']['avatar']; ?>" width="180" />
                        </span>
                        <span style="float: left;margin-left: 20px;">
                            <input type="hidden" id="mid" value="<?php echo $_SESSION['client']['id']; ?>"/>
                            <input type="file" id="avatarUpload" /><br>
                            <p class="explain">Vui lòng chọn ảnh định dạng *.jpg, <br>*.jpeg, *.gif hoặc *.png (tối đa 5 MB).</p>
                            <p style="margin-top: 10px;padding-left:5px"><a title="Chỉnh sửa ảnh đại diện" style="" id="editavatar" href="javascript:createAvatarWindow('<?php echo $_GET['mid']; ?>');">Chỉnh sửa ảnh</a></p>
                        </span>
                    </div>
                </li>
              
            </ul>
        </div>



    </div>

</div>

<script src="/js/avatar.js" type="text/javascript"></script>